<?php

namespace Application\Model;

use Zend\Form\Annotation;

class SejourCommentaires {
	public $idCom;
	public $emailCom;
	public $textCom;
	public $dateCom;
	public $sejourId;

	public function exchangeArray($data)
	{
		$this->idCom = (isset($data['idCom'])) ? $data['idCom'] : null;
		$this->emailCom = (isset($data['emailCom'])) ? $data['emailCom'] : null;
		$this->textCom = (isset($data['textCom'])) ? $data['textCom'] : null;
		$this->dateCom = (isset($data['dateCom'])) ? $data['dateCom'] : date('Y-m-d H:i:s');
		$this->sejourId = (isset($data['sejourId'])) ? $data['sejourId'] : null;
	}
}
